﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Windows.Forms.Design;
using System.Drawing;

namespace BADDGUI.Controls
{
    [ToolStripItemDesignerAvailability(ToolStripItemDesignerAvailability.ToolStrip)]
    [DefaultProperty("Items")]
    public partial class BLCTspTextBox : BLCToolStripControlHost
    {
        #region Constructor & Load
        
        public BLCTspTextBox() : base(CreateControlInstance())
        {
            this.AutoSize = false;
            this.Size = new Size(80, 21);
        }

        public BLCTspTextBox(IContainer container) : base(CreateControlInstance())
        {
            container.Add(this);
        }

        public BLCTspTextBox(string name) : this()
        {
            this.Name = name;
        } 

        #endregion

        #region Method

        private static Control CreateControlInstance()
        {
            BLCTextBox txt = new BLCTextBox();
            txt.AutoSize = false;
            txt.Size = new Size(70, 20);
            return txt;
        } 

        #endregion
    }
}
